home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK2.toast / Development Kits (Disc 2) / QuickTime™ VR 2.0 SDK / QTVR C⁄C++ Runtime API / Sample Code / VRShell Sample Code / VR3DObjects / TestFunctions.h < prev    next >
Encoding:
Text File  |  1997-05-22  |  2.9 KB  |  74 lines  |  [TEXT/MPCC]

  1. //
  2. //    File:        TestFunctions.h
  3. //
  4. //    Contains:    Localized sound support for QuickTime VR movies.
  5. //
  6. //    Written by:    Tim Monroe
  7. //
  8. //    Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //    Change History (most recent first):
  11. //
  12. //       <1>         12/05/96    rtm        ported earlier 3D sound support functions to VRShell
  13. //       
  14. //
  15.  
  16. // header files
  17.  
  18. #include "QTVR.h"
  19. #include "QTVRFrmt.h"
  20. #include "QD3D.h"
  21. #include "QD3DGroup.h"
  22. #include "QD3DStorage.h"
  23. #include "QD3DErrors.h"
  24. #include "QD3DView.h"
  25. #include "QD3DMath.h"
  26. #include "QD3DGeometry.h"
  27. #include "QD3DShader.h"
  28. #include "QD3DRenderer.h"
  29. #include "QD3DLight.h"
  30. #include "QD3DDrawContext.h"
  31. #include "QD3DCamera.h"
  32. #include "QD3DTransform.h"
  33. #include "QD3DStorage.h"
  34. #include "QD3DIO.h"
  35. #include "QD3DSet.h"
  36.  
  37. #include "MacApplication.h"
  38. #include "MacFramework.h"
  39.  
  40. #pragma once
  41.  
  42. // constants
  43. #define    kAnimateRadians        0.1        // this controls the speed of animation rotation
  44. #define    k3DObjectDistance    3.0        // this controls the placement of the 3D object
  45. #define    kPicFileHeaderSize    512        // the number of bytes in PICT file header
  46.  
  47. // function prototypes
  48. void                        VR3DObjects_Init (void);
  49. void                        VR3DObjects_Stop (void);
  50. Boolean                        VR3DObjects_IsQD3DAvailable (void);
  51. ApplicationDataHdl            VR3DObjects_InitWindowData (WindowObject theWindowObject);
  52. TQ3GroupObject                VR3DObjects_CreateModel (TQ3ObjectType theObjectType);
  53. TQ3ViewObject                VR3DObjects_CreateView (GWorldPtr theGWorld);
  54. TQ3GroupObject                VR3DObjects_CreateLights (void);
  55. TQ3DrawContextObject        VR3DObjects_CreateDrawContext (GWorldPtr theGWorld);
  56. TQ3CameraObject                VR3DObjects_CreateCamera (CGrafPtr thePort);
  57. void                        VR3DObjects_SetSubdivisionStyle (TQ3GroupObject theGroup, short theNumDivisions);
  58. void                        VR3DObjects_AnimateModel (WindowObject theWindowObject);
  59. TQ3Status                    VR3DObjects_DrawModel (WindowObject theWindowObject);
  60. void                        VR3DObjects_GetModelFromFile (void);
  61. void                        VR3DObjects_InstallPrescreenRoutine (QTVRInstance theInstance, WindowObject theWindowObject);
  62. void                        VR3DObjects_InstallInterceptRoutine (QTVRInstance theInstance, WindowObject theWindowObject);
  63. pascal OSErr                VR3DObjects_PrescreenRoutine (QTVRInstance theInstance, WindowObject theWindowObject);
  64. pascal void                    VR3DObjects_InterceptRoutine (QTVRInstance theInstance, QTVRInterceptPtr theMsg, WindowObject theWindowObject, Boolean *cancel);
  65. void                        VR3DObjects_SetCamera (WindowObject theWindowObject);
  66. void                        VR3DObjects_SetCameraAspectRatio (WindowObject theWindowObject);
  67. void                        VR3DObjects_UpdateDrawContext (WindowObject theWindowObject);
  68. Boolean                        VR3DObjects_GetEmbeddedMovie (Movie *theMoviePtr);
  69. Boolean                        VR3DObjects_LoadEmbeddedMovie (FSSpec *theMovieFile, Movie *theMoviePtr);
  70. void                        VR3DObjects_LoopEmbeddedMovie (Movie theMovie, GWorldPtr theGWorld);
  71. PicHandle                    VR3DObjects_GetEmbeddedPicture (void);
  72. void                        VR3DObjects_FadeObjects (ApplicationDataHdl theAppData, Boolean isShow);
  73.  
  74.